<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>汽车保养与维修系统</title>
	<link href="<?php echo base_url('web');?>/css/bootstrap.min.css" rel="stylesheet" />
	<script src="<?php echo base_url('web')?>/js/jquery-3.2.0.min.js" ></script>
	<script src="<?php echo base_url('web')?>/js/bootstrap.min.js" ></script>
</head>
<body style="padding:100px;">
	<div class="panel panel-default">
		<!-- Default panel contents -->
		<div class="panel-heading"><h1>工作预约列表</h1></div>

		<!-- Table -->
		<table class="table">
			<style>
				.table {text-align:center;}
				.table th {text-align:center;}
			</style>
			<thead>
				<tr>
					<th>顺序</th>
					<th>标题</th>
					<th>状态</th>
					<th>价格</th>
					<th>用户名</th>
					<th>联系方式</th>
					<th>车型</th>
					<th>车牌号</th>
				</tr>
			</thead>
		
			<tbody>
				<?php 
					$str = '';
					foreach($list as $k=>$v){
						$str .= '<tr>';
						$str .= '<td style="vertical-align:middle;" class="id">'.($k+1).'</td>';
						$title = $v['title']==null?'预约工作人员':$v['title']; 
						$str .= '<td style="vertical-align:middle;">'.$title.'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['status'].'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['price'].'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['uname'].'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['utel'].'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['type'].'</td>';
						$str .= '<td style="vertical-align:middle;">'.$v['plate'].'</td>';
						$str .= '</tr>';
					}
					echo $str;
				?>
			</tbody>
		</table>
	</div>
</body>
</html>